Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Command): remove invalid data-[disabled] attribute #1980

Closed
wants to merge 2 commits into from

Conversation

kevinmitch14
Copy link
Contributor

cmdk's README.md states that [data-disabled] is available on <Command.Item />. However since the PR that made this data attribute available, there has been no releases. As a result the styling using this data attribute is not being applied.

While making these changes I realised aria-selected is also being used for styling, so I switched this to use the data attribute, data-selected, which is applied by cmdk.

I created an issue on cmdk repo here, pacocoursey/cmdk#192 and will follow this but there is no indication when this will be addressed or if there will be a new release.

Before w/ Calendar CommandItem disabled:
Screenshot 2023-11-19 at 21 05 33

After w/ Calendar CommandItem disabled:
Screenshot 2023-11-19 at 21 04 17

Copy link

vercel bot commented Nov 20, 2023

@kevinmitch14 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@shadcn shadcn added bug Something isn't working component: command labels Jan 28, 2024
@kevinmitch14
Copy link
Contributor Author

This has been updated in the latest cmdk release yesterday https://github.com/pacocoursey/cmdk/releases/tag/v0.2.1. I will bump dep and file a new PR when I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants